var t = require;
var i = module;
cc.Class({
    extends: cc.Component,
    properties: {label: cc.Label, wrong: "", right: ""},
    start: function start() {
        this.wrong && ((this.right = this.right || this.label.string + ""), (this.label.string = this.wrong));
    },
    setRightCB: function setRightCB(t) {
        this.rightCB = t;
    },
    onSelfClick: function onSelfClick() {
        this.wrong && this.right && this.label.string != this.right && this.aniToRight();
    },
    aniToRight: function aniToRight() {
        var t = this.label.string + "";
        (this.label.string = this.right), this.rightCB && this.rightCB(t, this.right, this);
    },
    isRight: function isRight() {
        return !this.wrong || !this.right || this.label.string == this.right;
    }
});
